package com.ivan.hospital.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ivan.model.entity.hosp.Schedule;
import com.ivan.model.vo.hosp.BookingScheduleRuleVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/*
 * @Author      Ivan
 * @Date        2023/4/4 21:59
 * @Description
 */
public interface ScheduleMapper extends BaseMapper<Schedule> {

    //条件查询预约规则
    List<BookingScheduleRuleVo> getScheduleRuleVos(@Param("start") long start,
                                                   @Param("limit") long limit,
                                                   @Param("hoscode") String hoscode,
                                                   @Param("depcode") String depcode);

    //条件查询预约规则总数
    long getScheduleRuleVosTotal(@Param("start") long start,
                                 @Param("limit") long limit,
                                 @Param("hoscode") String hoscode,
                                 @Param("depcode") String depcode);
}
